package com.pms.entity;

import com.pms.dao.DocumentDao;

public class Folder {
	private String id;
	private String name;
	private String time;
	private float size;
	private float size2;
	private int number;
	private int number2;
	
	private String projectId;
	private String memberId;
	private Member member;
	private Project project;
	
	public float getSize2() {
		DocumentDao documentDao = new DocumentDao();
		return documentDao.findSizeByfolderId(this.id);
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public float getSize() {
		return size;
	}
	public void setSize(float size) {
		this.size = size;
	}
	
	public int getNumber2() {
		DocumentDao documentDao = new DocumentDao();
		int num = (int) documentDao.findNumberByfolderId(this.id);
		return num;
	}
	
	
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public String getProjectId() {
		return projectId;
	}
	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}
	public String getMemberId() {
		return memberId;
	}
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}
	public Member getMember() {
		return member;
	}
	public void setMember(Member member) {
		this.member = member;
	}
	public Project getProject() {
		return project;
	}
	public void setProject(Project project) {
		this.project = project;
	}
	
}
